package com.git_taoxian.test9;

import java.util.ResourceBundle;

public class Test {
    public static void main(String[] args) {
//        获取ResourceBundle工具类对象
        ResourceBundle rb = ResourceBundle.getBundle("iphone");
//        获取对象的key并得到对应的值
        String brand = rb.getString("brand");
        String capacity = rb.getString("capacity");
        String price = rb.getString("price");
        System.out.println(brand+","+capacity+","+price);
    }
}
